//package com.china.produce.config.es;
//
//import org.elasticsearch.client.RestHighLevelClient;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.elasticsearch.client.ClientConfiguration;
//import org.springframework.data.elasticsearch.client.RestClients;
//import org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration;
//
///**
// * @ClassName
// * @Author niujie
// * @Version
// * @Description
// * @CreateTime 2022/9/20
// */
//@Configuration
//public class ElasticSearchRestClientConfig extends AbstractElasticsearchConfiguration {
//
//
//    @Override
//    @Bean("esRestHighLevelClient")
//    public RestHighLevelClient elasticsearchClient() {
//
//       final ClientConfiguration clientConfiguration = ClientConfiguration.builder().connectedTo("81.69.242.110:9200").build();
//
//       return RestClients.create(clientConfiguration).rest();
//    }
//}
